import {RouterProvider} from 'react-router-dom'
import { createRoot } from 'react-dom/client'
import './index.css'
import './styles/theme.css'
import router from './router'
import { StrictMode } from 'react'
import store from './store'
import { Provider } from 'react-redux';
import 'antd/dist/reset.css'
import { themeUtils } from './utils/themeConfig'
import { I18nextProvider } from 'react-i18next';
import i18n from './i18n';

// 初始化主题
themeUtils.initializeTheme();

createRoot(document.getElementById('root')!).render(
<StrictMode>
  <I18nextProvider i18n={i18n}>
    <Provider store={store}>
      <RouterProvider router={router}></RouterProvider>
    </Provider>
  </I18nextProvider>
  </StrictMode>,
)
